package com.baiku.sanhos.pojo.vo;

import com.baiku.sanhos.utils.consts.CommentConsts;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;

import java.io.Serializable;
import java.util.Date;

/**
 * @author ruoLi
 * 前端预约管理数据
 */
@Data
public class BookingRegisterVO implements Serializable {
    private Integer id;
    private String nickname;
    private String doctor;
    private String deptName;
    private Double expenses;
    private Integer status;
    private Integer payStatus;
    @JsonFormat(pattern = "yyyy年M月d日 HH:mm",timezone = "GMT+8")
    private String date;
    private String hospital;


    public void setHospital(String hospital) {
        if (hospital.isEmpty()){
            this.hospital= CommentConsts.HOSPITAL.getValue();
            return;
        }
        this.hospital = hospital;
    }

    public String getHospital() {
        this.hospital= CommentConsts.HOSPITAL.getValue();
        return hospital;
    }
}
